module.exports = function(window, document) {
	var apivm = require('../../common/avm.min')(window, document);
	var avm = apivm;
	var api = apivm.api;
	var Component = apivm.Component;
	var $ = apivm.$;
	(function() {
	var ComputeDemo = /*@__PURE__*/ (function(Component) {
		function ComputeDemo(props) {
			Component.call(this, props);
			this.data = {
				price: 100,
				msg: "hello world"
			};
			this.compute = {
				reverMsg: function() {
					return this.data.msg
						.split("")
						.reverse()
						.join("");
				}
			};
		}

		if (Component) ComputeDemo.__proto__ = Component;
		ComputeDemo.prototype = Object.create(Component && Component.prototype);
		ComputeDemo.prototype.constructor = ComputeDemo;
		ComputeDemo.prototype.apiready = function() {};
		ComputeDemo.prototype.changeMsg = function(msg) {
			return msg
				.split("")
				.reverse()
				.join("");
		};
		ComputeDemo.prototype.render = function() {
			return apivm.h(
				"view",
				{class: "page"},
				apivm.h("view", null, this.data.price + "¥"),
				apivm.h(
					"view",
					null,
					this.data.msg
						.split("")
						.reverse()
						.join("")
				),
				apivm.h("view", null, this.reverMsg)
			);
		};

		return ComputeDemo;
	})(Component);
	apivm.define("compute-demo", ComputeDemo);
	apivm.render(apivm.h("compute-demo", null), "body");
})();

	window['createApp'] = function() {
		apivm.$_start();
	}
	return avm;
}